package com.mvc.service.impl;

import com.mvc.dao.TeacherDao;
import com.mvc.dao.impl.TeacherDaoImpl;
import com.mvc.pojo.Teacher;
import com.mvc.service.TeacherService;

import java.util.List;

public class TeacherServiceImpl implements TeacherService {

    TeacherDao teacherDao = new TeacherDaoImpl();

    @Override
    public List<Teacher> findAllTeacher() {
        List<Teacher> all = teacherDao.findAll();
        return all;
    }
}
